package com.mingdong.first.zhuangshi;

import com.mingdong.first.zhuangshi.coffee.LongBlackCoffee;
import com.mingdong.first.zhuangshi.decolation.Chocolates;
import com.mingdong.first.zhuangshi.decolation.Decoration;
import com.mingdong.first.zhuangshi.decolation.Mike;
import com.mingdong.first.zhuangshi.decolation.Yoge;

public class Test {

	public static void main(String[] args) {
		LongBlackCoffee longBlackCoffee = new LongBlackCoffee();
		Decoration order = new Chocolates(longBlackCoffee);
		order = new Mike(order);
		order = new Mike(order);
		order = new Chocolates(order);

		System.out.println(order.cost()+"---"+order.getDescription());
	}

}
